<!-- 条件编译自定义组件 -->
<template name="ifdef">
  <view class="tjby">
    <view>条件编译：当前平台为</view>
    <!-- #ifdef H5 -->
    <view>H5平台</view>
    <!-- #endif -->
    <!-- #ifdef MP-WEIXIN -->
    <view>微信小程序</view>
    <!-- #endif -->
    <!-- #ifdef MP-ALIPAY -->
    <view>支付宝小程序</view>
    <!-- #endif -->
    <!-- #ifdef MP-BAIDU -->
    <view>百度小程序</view>
    <!-- #endif -->
    <!-- #ifdef MP-TOUTIAO -->
    <view>字节跳动小程序</view>
    <!-- #endif -->
    <!-- #ifdef MP-QQ -->
    <view>QQ小程序</view>
    <!-- #endif -->
  </view>
</template>

<script>
export default {
  name: 'ifdef',
  data() {
    return {};
  }
};
</script>

<style lang="less">
.tjby {
  border: 3rpx dashed #777777;
  font-size: 50rpx;
  text-align: center;
}
</style>
